<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      class Animal {
        constructor(name) {
          this.speed = 0
          this.name = name
        }
      }

      class Rabbit extends Animal {
        constructor(name, earLength) {
          super(name)
          this.earLength = earLength
        }
      }

      let rabbit = new Rabbit('White Rabbit', 10)
      console.log(rabbit.name)
      console.log(rabbit.earLength)
    </script>
  </body>
</html>
